<template>
	<Table :columns="columns1" :data="data1"></Table>
</template>
<script>
import {
  fill
} from '@/api/lky/lkyStudent'
import {
  createModelObj,
  coverProps,
  coverFormProps
} from '@/libs/util'
export default {
  data () {
    return {
      columns1: [{
        title: '表名',
        key: 'file_name'
      },
      {
        title: '需填次数',
        key: 'times'
      },
      {
        title: '已通过次数',
        key: 'times1'
      },
      {
        title: '开始时间',
        key: 'start_time',
      },
      {
        title: '结束时间',
        key: 'end_time',
      }
      ],
      data1: [
      ]
    }
  },
  mounted () {
    if (this.$route && this.$route.query) {
      fill({
        id: this.$route.query.id,
        pageNumber: 1,
        pageSize: 20
      }).then(res => {
        this.data1 = res.list
        console.log(res.list)
      }).catch(err => {
        this.$Message.error(err)
      })
    }
  }
}
</script>
